package cp3120.ucm.client;

import cp3120.ucm.*;
import cp3120.view.MainUI;

/**
 * Author: Adam Scarr
 * Date: 26/03/2009
 * Time: 8:51:18 AM
 * PRECONDITION: A request has been made for registration UI <br>
 * POST-CONDITION: The system has displayed the registration UI <br>
 * 1. System displays the registrationUI<br>
 * 2. System creates an event listener for when the user registers<br>
 */
public class UCDisplayRegistration implements UCController {
    /**
     * Runs the UC
     */
    public void run() {
        MainUI.getInstance().getRegistrationUI().setVisible(true);
        MainUI.getInstance().getRegistrationUI().setRegistrationAction(new UC2ALAdapter(new UCRegisterUser()));
    }
}
